<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>选择简历</title>
    <link rel="stylesheet" href="__INDEX__/css/index1.css" />
    <script type="text/javascript" src="__INDEX__/js/rem1.js" ></script>
    <script type="text/javascript" src="__INDEX__/js/jquery-3.3.1.js" ></script>
</head>
<body>
<div class="jianli_box">
    <?php foreach ($list as $key => $value): ?>
        <a style="text-decoration: none;" onclick="td_state(<?php echo $value['id'] ?>,1)">
            <div class="jianli_list">
                <img src="__INDEX__/images/icon.png" />
                <h3>兼职-<?php echo $value['jname'] ?></h3>
                <p>更新时间：<?php echo substr($value['update_time'],0,10) ?></p>
            </div>
        </a>
    <?php endforeach ?>
    <?php foreach ($list_qz as $key => $value): ?>
        <a style="text-decoration: none;" onclick="td_state(<?php echo $value['id'] ?>,2)">
            <div class="jianli_list">
                <img src="__INDEX__/images/icon.png" />
                <h3>全职-<?php echo $value['jname'] ?></h3>
                <p>更新时间：<?php echo substr($value['add_time'],0,10) ?></p>
            </div>
        </a>
    <?php endforeach ?>
</div>
<script>
    function td_state(id,type) {
        var jobid = <?php echo $jobid; ?>;
        $.ajax({
            type:"post",
            url:"/index/zhiwei/toudiAdd",
            data:{'jobid':jobid,'id':id,'type':type},
            success:function(res){
                alert(res.msg);
                location.href="<?php echo url('index/usercenter') ?>"
            }
        })
    }
</script>
</body>
</html>
